﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLookupTicket.aspx.cs" Inherits="UserLookupFlight" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Style/StyleSheet.css" type="text/css" rel="Stylesheet" />
   <script type="text/javascript" src="Scripts/WdatePicker.js"></script>
   <link rel="Stylesheet" rev="Stylesheet" href="Scripts/jock-citypicker-2.0.min.css" type="text/css" />
    <script type="text/javascript" src="Scripts/jock-citypicker-2.0.min.js"></script>
   <script type="text/javascript">
       window.onload = function () {
           var a = document.getElementById("From_station");
           var b = document.getElementById("To_station");

           a.onclick = function () {
               citypicker.show({ left: 80, top: 20 }, function (data) {
                   a.value = data;
               });
           };

           var p = { left: 323, top: 20 };
           var fn1 = function (city) {
               b.value = city;
           };
           b.onclick = function () {
               citypicker.bind(fn1).fix(p).show();
           };
       }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="MainConten"  style="width:1200px; height:900px ; margin:0 auto;">
            <h1 style="text-align:center; color: Lime">飞机票查询</h1>
            <div class="Menu" style=" width:100%; height:80px">
                <div class="MenuItem" style="width:100%; height:30px; margin:0 auto; margin-top:28px;">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    	<tr>
                            <td>
                                <asp:label id="From_stationLabel" runat="server"    style="height:100%; margin-bottom:10px">出发地:</asp:label>
                            </td>
                            <td>
                                <input type="TextBox" id="From_station" class="txtBox"  />
                            </td>
                            <td>
                                <asp:label id="To_stationLabel" runat="server"   >目的地:</asp:label>
                            </td>
                            <td>
                                <input type="TextBox" id="To_station" class="txtBox" />
                            </td>
                            <td>
                                <asp:label id="From_timeLabel" runat="server"   >出发时间:</asp:label>
                            </td>
                            <td>
                                <input type="TextBox" id="From_time" value="2015-06-06" class="txtBox" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly" />
                            </td>
                            <td>
                                <asp:Button id="Search" class="ButtonStyle" text="查询"  runat="Server" 
                                    onclick="Search_Click"></asp:Button>
                            </td>
                    	</tr>
                    </table> 
                </div>
            </div>
            <div class="GridViewStyle">
                <asp:GridView ID="GridView_lookup" runat="Server" class="GridViewStyle" 
                    AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" BorderStyle="Ridge" 
                    OnPageIndexChanging="GridView_lookup_PageIndexChanging" PageSize="11" 
                    Height="800px">
                    <FooterStyle BackColor="#990000" Font-Bold="true" ForeColor="White" />
                    <Columns>
                <asp:TemplateField HeaderText="航班编号">
                    <EditItemTemplate>
                        &nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Eval("FlightID") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("FlightID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="航班号">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FlightNumber") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FlightNumber") %>'></asp:Label>
                    </ItemTemplate>              
                </asp:TemplateField>
                <asp:TemplateField HeaderText="飞机型号">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FlightType") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FlightType") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="头等舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FirstSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FirstSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="头等舱票价 ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FirstSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FirstSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="商务舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("BusinessSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("BusinessSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="商务舱票价">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("BusinessSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("BusinessSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="经济舱">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EconomicSeat") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("EconomicSeat") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="经济舱票价">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EconomicSeatPrice") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("EconomicSeatPrice") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出发地">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FromAddress") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FromAddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="目的地">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ToAddress") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("ToAddress") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出发时间">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FromDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("FromDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="到达时间 ">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ToDate") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("ToDate") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出发时刻">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("FromTime") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label13" runat="server" Text='<%# Bind("FromTime") %>'></asp:Label>
                    </ItemTemplate>              
                </asp:TemplateField>
                    </Columns>
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="true" ForeColor="White" />
                    <PagerStyle BackColor="white" ForeColor="#0000066" HorizontalAlign="Left" />
                    <HeaderStyle BackColor="#006699" Font-Bold="true" ForeColor="White" />
                </asp:GridView>
                <table style="width: 727px">
                        <tr>
                            <td style="font-size: small; width: 234px; height: 1px; text-align: left">
                                共<asp:Label ID="Label10" runat="server" Font-Size="Small" Text="Label"><%=GridView_lookup.PageCount%></asp:Label>页
                                当前第<asp:Label ID="Label11" runat="server" Font-Size="Small" Text="Label"><%=GridView_lookup.PageIndex + 1%></asp:Label>
                                页&nbsp;
                            </td>
                            <td align="right" colspan="1" style="font-size: small; width: 270px;
                                height: 1px; text-align: right">
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="first" CommandName="A"
                                    Font-Underline="False" ForeColor="Black" OnClick="LinkButton1_Click">首页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="prev" CommandName="A"
                                    Font-Underline="False" ForeColor="Black" OnClick="LinkButton1_Click">上一页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument="next" CommandName="A"
                                    Font-Underline="False" ForeColor="Black" OnClick="LinkButton1_Click">下一页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="last" CommandName="A"
                                    Font-Underline="False" ForeColor="Black" OnClick="LinkButton1_Click">尾页</asp:LinkButton>
                                &nbsp;</td>
                        </tr>
                    </table>
            </div>
        </div>
    </form>
</body>
</html>
